//
//  PurchaseDetailTableViewCell.swift
//  HuaYun
//
//  Created by enghou on 2018/7/26.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import UIKit

class PurchaseDetailTableViewCell: UITableViewCell {
    
    @IBOutlet weak var nameLabel: UILabel!
    
    @IBOutlet weak var predicateLabel: UILabel!
    
    @IBOutlet weak var remarkLabel: UILabel!
    
    var model: JSON? {
        set{
            
            self.nameLabel.text = newValue?.dictionary?["procorement"]?.rawString()
            
            self.predicateLabel.text = String(((newValue?.dictionary?["estimatedAmount"]?.int) ?? 0) / 100)
            
            self.remarkLabel.text = newValue?.dictionary?["remark"]?.rawString()
        }
        get{
            return nil
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
